<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="大家的Java博客">
    <meta name="author" content="EveryoneJavaBlog">
    <link rel="icon" href="favicon.ico">

    <!-- Bootstrap core CSS -->
    <link href="../lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="../css/api.css" rel="stylesheet">
    <link href="../lib/highlight/styles/darkula.css" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="../asset/html5shiv.min.js"></script>
    <script src="../asset/respond.min.js"></script>
    <![endif]-->
    <title>大家的Java博客API文档</title>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top navbar-java">
    <div class="container">
        <div id="navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="/">首页</a></li>
                <li><a href="api-index.html">API通用规则</a></li>
                <li><a href="api-list.html">API列表</a></li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>

<div class="container">

    <div class="row">

        <h2>文章排名接口</h2>

        <p><strong>地址：</strong></p>
        <blockquote>/HomePage/TopThreeUserArticles</blockquote>

        <p><strong>方法：</strong></p>
        <blockquote>GET</blockquote>

        <p><strong>是否需要登录：</strong></p>
        <blockquote>否</blockquote>

        <p><strong>参数说明：</strong></p>

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>参数名称</th>
                <th>是否必选</th>
                <th>参数类型</th>
                <th>参数描述</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>categoryName</td>
                <td>是</td>
                <td>String</td>
                <td>文章类别名称</td>
            </tr>
            </tbody>
        </table>

        <p><strong>请求示例：</strong></p>

        <pre><code class="Bash">curl -d 'categoryName=技术' '/HomePage/TopThreeUserArticles'</code></pre>

        <p><strong>返回值说明：</strong></p>

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>参数名称</th>
                <th>是否必选</th>
                <th>参数类型</th>
                <th>参数描述</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>topThreeUserArticles</td>
                <td>是</td>
                <td>Map&lt;String,UserArticle&gt;</td>
                <td>排名最高的三篇用户文章</td>
            </tr>
            </tbody>
        </table>
        <p><strong>返回示例：</strong></p>

        <pre><code class="JSON">{"code":200,"message":"请求成功","data":{"mostRecommendArticle":{"webUserId":1,"categoryId":1,"title":"第二篇","content":"淘宝如何","readTimes":5,"thumbupTimes":1,"isMainPage":1,"status":1,"commentTimes":1,"id":2,"createTime":"2016-06-17 15:31:24","updateTime":"2016-06-17 15:45:33"},"mostCommentArticle":{"webUserId":1,"categoryId":1,"title":"第二篇","content":"淘宝如何","readTimes":5,"thumbupTimes":1,"isMainPage":1,"status":1,"commentTimes":1,"id":2,"createTime":"2016-06-17 15:31:24","updateTime":"2016-06-17 15:45:33"},"mostReadArticle":{"webUserId":1,"categoryId":1,"title":"第二篇","content":"淘宝如何","readTimes":5,"thumbupTimes":1,"isMainPage":1,"status":1,"commentTimes":1,"id":2,"createTime":"2016-06-17 15:31:24","updateTime":"2016-06-17 15:45:33"}}}</code></pre>

    </div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="../lib/jquery/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="../lib/bootstrap/js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../asset/ie10-viewport-bug-workaround.js"></script>
<script src="../lib/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>